﻿using EkStudio.com.bean.xml.reflection;
using EkStudio.com.bean.xml.RootInterface;
using EkStudio.com.bean.xml.Unit;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EkStudio.com.bean.xml.WorkFlow.Node
{
    /// <summary>
    /// 线位置信息
    /// </summary>
    public class WflowModuleNodeLine: BillObjectInterface
    {
        private string key = "";
        private string caption = "";
        private int fromPoint   = WflowUtility.POSTION_NODE_BOTTOM;//线启点
        private int fromPostion = WflowUtility.POSTION_NODE_LEFT;//线左右位置

        private int toPoint   = WflowUtility.POSTION_NODE_TOP;
        private int toPostion = WflowUtility.POSTION_NODE_LEFT;

        [Xml]
        public string Key
        {
            get
            {
                return key;
            }

            set
            {
                key = value;
            }
        }
        [Xml]
        public string Caption
        {
            get
            {
                return caption;
            }

            set
            {
                caption = value;
            }
        }
        [Xml]
        public int FromPoint
        {
            get
            {
                return fromPoint;
            }

            set
            {
                fromPoint = value;
            }
        }
        [Xml]
        public int FromPostion
        {
            get
            {
                return fromPostion;
            }

            set
            {
                fromPostion = value;
            }
        }
        [Xml]
        public int ToPoint
        {
            get
            {
                return toPoint;
            }

            set
            {
                toPoint = value;
            }
        }
        [Xml]
        public int ToPostion
        {
            get
            {
                return toPostion;
            }

            set
            {
                toPostion = value;
            }
        }
        [XmlTransient]
        public object ParentBean
        {
            get
            {
                return null;
            }

            set
            {
                
            }
        }

        public object Clone()
        {
            WflowModuleNodeLine clone = new WflowModuleNodeLine();
            clone.Key = key;
            clone.Caption = caption;
            clone.FromPoint = fromPoint;
            clone.FromPostion = fromPostion;
            clone.ToPoint = toPoint;
            clone.ToPostion = toPostion;
            return clone;
        }
    }
}
